<form action="" method="post" enctype="multipart/form-data">
	<table>
		<tr><td>拍品名称</td><td><input type="text" maxlength="50" size="50" onblur="inputUrlSpell()" id="name" name="name"/></td></tr>
		<tr><td>url spell</td><td><input type="text" maxlength="150" size="80" id="urlSpell" name="urlSpell"/></td></tr>
		<tr><td>icon 图片</td><td><input type="file" maxlength="150" id="icon" name="icon"/></td></tr>
		<tr><td>关键词</td><td><input type="text" maxlength="150" size="50" id="keyWrods" name="keyWords"/></td></tr>
		<tr><td>拍卖人</td><td><input type="text" maxlength="150" size="50" id="owner" name="owner"/></td></tr>
		<tr><td>文字描述</td><td><textarea cols="60" rows="5" name="textDesc" id="textDesc" ></textarea> </td></tr>
		<tr><td>细节图片</td><td><input type="file" maxlength="150" id="uploadImg" name="uploadImg"/><br/><input type="text" maxlength="150" id="linkImg" name="linkImg"/></td></tr>
		<tr><td>尺寸大小</td><td><input type="text" maxlength="150" size="50" id="size" name="size"/></td></tr>
		<tr><td>重量</td><td><input type="text" maxlength="150" size="50" id="weight" name="weight"/></td></tr>
		<tr><td>成交价</td><td><input type="text" maxlength="150" size="50" id="price" name="price"/></td></tr>
		<tr><td>成交日期</td><td><input type="text" maxlength="150" size="50" id="date" name="date"/></td></tr>
		<tr><td>拍卖方式</td><td><input type="text" maxlength="150" size="50" id="type" name="type"/></td></tr>
		<tr><td>出处连接</td><td><input type="text" maxlength="150" size="50" id="link" name="link"/></td></tr>
		<tr><td colspan="2"><input type="submit" value="提交" /></td></tr>
	</table>
</form>
<script type="text/javascript">
function inputUrlSpell(){
	var str="name="+$('#name').val();
	$.ajax({
		type: "GET",	
	  	url: "<?php echo $this->baseUrl(); ?>/admin/cai-jia-ge/ajax-get-url-spell",
	  	data: str,
	  	success: success,
	  	error: error
	});
}

function success(data){
	$('#urlSpell').val(data);
}

function error(){
	alert("error");
}

</script>